import { getExhibitComments, saveExhibitComments } from '@/api/advertising.js';
import { add, deleteIds,getDetail } from '@/api/crud'
export default {
  data() {
    return {
      apiModules: 'sns',
			apiTypes: 'exhibitComment',
      exhibitId: '' , // 展会id
      comments: {
        content: '',
        parentCreater:''
      },
      commentsList: [], // 展会评论列表
    }
  },
  created() {
    // this.get()
  },
  methods: {
    // 提交评论
   async add(){     
     await add(this.params,this.apiTypes, this.apiModules,this.type)
    },
    // 获取评论
    async get() {
      await getDetail(this.params,this.apiTypes, this.apiModules, this.type)
      this.commentsList = res.content
    },
    // 删除评论
    async delete() {
     await deleteIds(this.params,this.apiTypes, this.apiModules, this.type)
    }
  },
}